package com.musiklegal;

public class Address 
{	
	public Address(String adr,int offs,String fltr)
	{
		addr = adr;
		offset = offs;
		filter = fltr;
		anothersong = false;
	}
	boolean anothersong;
	
	int offset;
	String filter;
	String addr;
	public String toString()
	{
		if(filter!=null && filter.compareToIgnoreCase("")!=0)
			{
			if(!anothersong)
				return addr+"&filter="+filter+"&offset="+offset;
			else
				return addr;
			}
		else
		{
			if(!anothersong)
			return addr+"&offset="+offset;
			else
			return addr;
		}
	}
}
